<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@ page import="java.util.List" %>
 <%@ page import="cci.siteMarchand.model.*" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="ISO-8859-1">
		<link rel="stylesheet" href="styles/css.css">
		<title>Vente de livre</title>
	</head>
	<style type="text/css">
		body{
			width : 1200px;
		}
	
		#table_articles{
			border-right : solid 1px black;
		} 

		#table_articles td{
			border-left : solid 1px black;
			border-bottom : solid 1px black;
			border-top : solid 1px black;
			padding : 5px 5px 5px 5px;
		}
		
		#banner{
			background: #ffffff; /* Old browsers */
			background: -moz-linear-gradient(-45deg,  #ffffff 0%, #f1f1f1 17%, #e1e1e1 100%, #f6f6f6 100%); /* FF3.6+ */
			background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#ffffff), color-stop(17%,#f1f1f1), color-stop(100%,#e1e1e1), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
			background: -webkit-linear-gradient(-45deg,  #ffffff 0%,#f1f1f1 17%,#e1e1e1 100%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
			background: -o-linear-gradient(-45deg,  #ffffff 0%,#f1f1f1 17%,#e1e1e1 100%,#f6f6f6 100%); /* Opera 11.10+ */
			background: -ms-linear-gradient(-45deg,  #ffffff 0%,#f1f1f1 17%,#e1e1e1 100%,#f6f6f6 100%); /* IE10+ */
			background: linear-gradient(135deg,  #ffffff 0%,#f1f1f1 17%,#e1e1e1 100%,#f6f6f6 100%); /* W3C */
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
		}
		
		#menu{
			float : left;
			width  : 180px;
		}
		
		#corp{
			float : right;
			width : 900px;
		}
		
		div{
			border : solid 1px;
			margin : 15px 15px 15px 15px ;
		}
	</style>
	<body>
	
		<div id="banner">
			<img src="images/livre.png" /> 
				Vente de livre	
		</div>
		
		<div id="menu">
			<a href="/SiteMarchand/Compte" >Compte </a>
		
		</div>
		<div id="corp">
			<h1> Liste des articles disponibles </h1>
			<table id="table_articles" cellspacing ="0">
				 <c:forEach items="${sessionScope.articles}" var="article"> 
				 	<tr>
				 		<td>${article.ID}</td>
				 		<td>${article.designation}</td>
				 		<td>${article.description}</td>
				 	</tr> 	
				 </c:forEach>
			</table>
		</div>
		
		<div id="footer">
		
		</div>
	</body>
</html>